package com.cyan.learn.pattern.composite;

public class CompositeTest {

    public static void main(String[] args) {
        Composite composite = new Composite();
        composite.add(new City());
        composite.add(new City());

        Composite father = new Composite();
        father.add(composite);
        father.add(new City());
        System.out.println(father.count());
    }
}
